package com.web709.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

@Data
@TableName("moment_images")
@ApiModel(value = "MomentImage", description = "动态图片")
public class MomentImage {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer momentId;
    private String imageUrl;
    private Integer sortOrder;

    public MomentImage(Integer id, String img) {
        this.id = id;
        this.imageUrl = img;
    }
}